/*
 * Project 1 phase 1
 * Efim Todorasco and Liviu Patrasco  
 */
import javax.media.opengl.GL;
import javax.media.opengl.GL2;
import javax.media.opengl.GLAutoDrawable;

public class Branch extends SceneGraphNode {
	
	public Branch() {
		this(true);
	}
	
	public Branch(boolean pickable) {
		super(pickable);
	}
	
	public void renderGeometry(GLAutoDrawable drawable) {
		GL2 gl = drawable.getGL().getGL2();
		 gl.glBegin(GL.GL_TRIANGLE_STRIP); 
     	 gl.glColor3f(.1f, .5f, .1f);
         gl.glVertex2f(-.1f, -.5f); 
         gl.glVertex2f(-.05f, .1f); 
         gl.glVertex2f(.1f, -.5f);
         gl.glVertex2f(.05f, .1f);

         gl.glEnd();
         

         gl.glEnd();
	}
}

